<template>
	<!-- <view class="collect">
	  <view>商品</view>
	  <view>店铺</view>
	</view> -->
	<view>
	<view class="collect">
		我的收藏
	</view>
	<view v-for="(item,index) in selectCollect">
		{{item.collectId}} {{item.category}} {{item.productId}}
		<button @click="deleteCollect(item.collectId)">删除</button>
	</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				Collect: {
				    'limit':'1',
					'size':'5'
				},
			    selectCollect : [
					
				]
			}
		},
		onLoad(){
			this.$req.getCollectSelect(this.Collect).then(res =>{
				this.selectCollect = res.data.list
				console.log(this.selectCollect),
				console.log(res.data)
			})
		},
		methods: {
			deleteCollect (collect) {
				console.log(collect)
				// console.log(res)
				// console.log(res.data)
				this.$req.getCollectDelete(collect).then(res =>{
				})
			}
			}
		}
</script>

<style>
	.collect {
		font-size: 40rpx;
		border: 1rpx solid #DD514C;
		border-radius: 20rpx;
		text-align: center;
		background-color: #FDE6D2;
	}
</style>
